/**
 * DeleteTakenCourseForm class.
 */
package pits.form;

import java.util.ArrayList;
import java.util.List;

public class DeleteTakenCourseForm {

	private String empID;
	private List<String> courseIDs;

	public DeleteTakenCourseForm(int empID, String courseIDList) {

		setEmpID("" + empID);

		List<String> result = new ArrayList<String>();
		String[] tmp = courseIDList.split(":");
		for (int i = 0; i < tmp.length; i++) {
			result.add(tmp[i]);
		}
		setCourseIDs(result);
	}

	/**
	 * @return the empID
	 */
	public String getEmpID() {
		return empID;
	}

	/**
	 * @param empID
	 *            the empID to set
	 */
	public void setEmpID(String empID) {
		this.empID = empID;
	}

	/**
	 * @return the courseIDs
	 */
	public List<String> getCourseIDs() {
		return courseIDs;
	}

	/**
	 * @param courseIDs
	 *            the courseIDs to set
	 */
	public void setCourseIDs(List<String> courseIDs) {
		this.courseIDs = courseIDs;
	}
}
